﻿// CMyChat.cpp: 实现文件
//

#include "pch.h"
#include "MFC对话框.h"
#include "afxdialogex.h"
#include "CMyChat.h"


// CMyChat 对话框

IMPLEMENT_DYNAMIC(CMyChat, CDialogEx)

CMyChat::CMyChat(CWnd* pParent /*=nullptr*/)
	: CDialogEx(IDD_DG_CHAT, pParent)
{

}

CMyChat::~CMyChat()
{
}

void CMyChat::DoDataExchange(CDataExchange* pDX)
{
	CDialogEx::DoDataExchange(pDX);
}


BEGIN_MESSAGE_MAP(CMyChat, CDialogEx)
END_MESSAGE_MAP()


// CMyChat 消息处理程序


void CMyChat::PostNcDestroy()
{
	// TODO: 在此添加专用代码和/或调用基类
	MessageBox(L"释放聊天框",L"tips");
	delete this;	//释放当前聊天类的对象

	CDialogEx::PostNcDestroy();
}
